-- GENERATED SPELL FOR [Flamewaker] --


function spell0_11661(pUnit, Event) --@Fist of Ragnaros,Self--
pUnit:FullCastSpellOnTarget(20277,pUnit)
pUnit:RegisterEvent('Sorts_11661', 4285, 1)
end

function spell1_11661(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(19730,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11661', 610, 1)
end

function spell2_11661(pUnit, Event) --@Sunder Armor,Self--
pUnit:FullCastSpellOnTarget(15502,pUnit)
pUnit:RegisterEvent('Sorts_11661', 30323, 1)
end

function Sorts_11661(pUnit, Event)
local choix_sorts_11661 = math.random(0, 2)
if choix_sorts_11661 == 0 then
pUnit:RegisterEvent('spell0_11661', 1, 1)
end
if choix_sorts_11661 == 1 then
pUnit:RegisterEvent('spell1_11661', 1, 1)
end
if choix_sorts_11661 == 2 then
pUnit:RegisterEvent('spell2_11661', 1, 1)
end
end

function mob11661_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11661', math.random(1500, 3000), 1)
end

function mob11661_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11661_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11661_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11661, 1, 'mob11661_Action')
RegisterUnitEvent(11661, 2, 'mob11661_Leave')
RegisterUnitEvent(11661, 3, 'mob11661_Kill')
RegisterUnitEvent(11661, 4, 'mob11661_Die')
